#pragma once

#include <memory>

#include "Containers/Containers.h"

#include "ScriptCompiler/AST/ASTNode.h"

class CAccessLevelNode;
class CDecoratorNode;
class CScriptToken;
class CParameterNode;
class CSentenceBlockNode;
class CExpressionNode;
class CFunctionContentNode;

class CConstructorNode : public CASTNode
{
public:
    CConstructorNode(std::weak_ptr<CScriptFileContext> InFile)
        : CASTNode(InFile,EASTNodeType::Constructor)
    {
    }


    TOptional<std::shared_ptr<CAccessLevelNode>> AccessLevel;

    TOptional<std::shared_ptr<CDecoratorNode>> Decorator;

    std::shared_ptr<CScriptToken> Name;

    TVector<std::shared_ptr<CParameterNode>> Parameters;

    TVector<std::shared_ptr<CExpressionNode>> BaseConstructorArguments;

    TOptional<std::shared_ptr<CFunctionContentNode>> Content;

    virtual void DebugPrint(int32_t InDepth) override;

    virtual std::shared_ptr<CScriptToken> GetFirstToken() override;
};